			<div class="full_w">
				<div class="h_title">New Player</div>
				<form action="handlers/addPlayer.php" method="post" enctype="multipart/form-data">
					<div class="element">
						<label for="name">Name <span class="red">(required)</span></label>
						<input id="name" name="name" class="text" />
					</div>
					<div class="element">
						<label for="lastName">Last Name <span class="red">(required)</span></label>
						<input id="lastName" name="lastName" class="text" />
					</div>
					<div class="element">
						<label for="team">Team </label>
						<select name="team">
                        <?php 
							$niz = getAllTeams();
							foreach ($niz as $team) {
						?>
								<option value="<?php echo $team->id; ?>"><?php echo $team->ime; ?></option>
                        <?php
							}
						?>
						</select>
					</div>
					<div class="element">
						<label for="positions">Positions </label>
                            <input type="checkbox" name="positions[]" value="PG" /> PG<br />
                            <input type="checkbox" name="positions[]" value="SG" /> SG<br />
                            <input type="checkbox" name="positions[]" value="SF" /> SF<br />
                            <input type="checkbox" name="positions[]" value="PF" /> PF<br />
                            <input type="checkbox" name="positions[]" value="C" /> C<br />
					</div>
					<div class="element">
						<label for="image">Image </label>
						<input type="file" name="image" />
					</div>
					<div class="element">
						<label for="profileImage">Profile Image </label>
						<input type="file" name="profileImage" />
					</div>
					<div class="element">
						<label for="jersey">Jersey Number </label>
						<input id="jersey" name="jersey" class="text" />
					</div>
					<div class="element">
						<label for="day">Date of Birth </label>
						Day: <input id="day" name="day" class="text" />
						Month: <input id="month" name="month" class="text" />
						Year: <input id="year" name="year" class="text" />
					</div>
					<div class="element">
						<label for="height">Height </label>
						<input id="height" name="height" class="text" />
					</div>
					<div class="element">
						<label for="weight">Weight </label>
						<input id="weight" name="weight" class="text" />
					</div>
					<div class="element">
						<label for="arm">Stronger Arm </label>
						<select name="arm">
							<option value="Right">Right</option>
							<option value="Left">Left</option>
							<option value="Both">Both</option>
						</select>
					</div>
					<div class="entry">
						<button type="submit" class="add">Save Player</button> <button class="cancel">Cancel</button>
					</div>
				</form>
				<div class="n_ok"><p>Success notification. Lorem ipsum dolor sit amet, consetetur, sed diam nonumyeirmod tempor.</p></div>
				<div class="n_error"><p>Error notification. Lorem ipsum dolor sit amet, consetetur, sed diam nonumyeirmod tempor.</p></div>		
			</div>
			
			<div class="full_w">
				<div class="h_title">Players</div>
				<h2>List of Players</h2>
				<p>You can change, add or delete players here.</p>
				
				<div class="entry">
					<div class="sep"></div>
				</div>
				<table>
					<thead>
						<tr>
							<th scope="col">ID</th>
							<th scope="col">Name</th>
							<th scope="col">Team</th>
							<th scope="col" style="width: 65px;">Modify</th>
						</tr>
					</thead>
						
					<tbody>
                    <?php
						$niz = getAllPlayers();
						
						foreach ($niz as $pla) {
					?>
						<tr>
							<td class="align-center"><?php echo $pla->id; ?></td>
							<td><?php echo $pla->ime; ?> <?php echo $pla->prezime; ?></td>
							<td><?php echo $pla->getTeamInfo()->ime; ?></td>
							<td>
								<a href="#" class="table-icon edit" title="Edit"></a>
								<a href="#" class="table-icon archive" title="Make Active"></a>
								<a href="handlers/deletePlayer.php?id=<?php echo $pla->id; ?>" class="table-icon delete" title="Delete"></a>
							</td>
						</tr>
                    <?php
						}
					?>
					</tbody>
				</table>
				<div class="entry">
					<div class="pagination">
						<span>« First</span>
						<span class="active">1</span>
						<a href="">2</a>
						<a href="">3</a>
						<a href="">4</a>
						<span>...</span>
						<a href="">23</a>
						<a href="">24</a>
						<a href="">Last »</a>
					</div>
					<div class="sep"></div>		
					<a class="button add" href="">Add new Player</a> 
				</div>
			</div>
